package com.bitdf.txing.seckill.feign;

import com.bitdf.txing.common.utils.R;
import com.bitdf.txing.seckill.config.FeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description:
 * @Created: with IntelliJ IDEA.
 * @author: 夏沫止水
 * @createTime: 2020-07-09 21:52
 **/

@FeignClient(
        name = "tx-mall-product",                 // 服务名称
        configuration = FeignInterceptor.class       // 请求拦截器 （关键代码）
)
public interface SeckillProductFeignService {

    /**
     * 获取商品详情
     * @param skuId
     * @return
     */
    @RequestMapping("/txing/mall/product/sku/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);

}
